﻿// Write a program that converts a string to a sequence of C# Unicode character literals. 
// Use format strings. 
// Sample input: Hi!
// Expected output: \u0048\u0069\u0021

using System;
using System.Text;

public class ConvertToUnicodeCharacters
{
    public static void Main()
    {
        string text = "Hi!";

        StringBuilder unicode = new StringBuilder(text.Length * 6);
        foreach (char character in text)
        {
            unicode.AppendFormat("\\u{0:X4}", (int)character);
        }

        Console.WriteLine(unicode);
    }
}